<template>
  <div class="head-box">
    <notice />
    <div class="right-box">
      <img src="../../assets/icon/home.png" alt="" />
      <img src="../../assets/icon/back.png" alt="" />
      <div class="line">&nbsp;</div>
      <div class="question">巡检问题: 1 条</div>
      <div class="line">&nbsp;</div>
      <div class="current-time">
        {{ currentTime }}
      </div>
    </div>
  </div>
</template>

<script setup lang='ts'>
  import { onMounted, ref } from "vue";
  import notice from "../notice/index.vue";
  import moment from 'moment';
  let currentTime = ref("");
  onMounted(()=>{
    currentTime.value = moment().format('HH:mm:ss');
    setInterval(()=>{
      currentTime.value = moment().format('HH:mm:ss');
    },1000)
    
  })
</script>

<style lang='less' scoped>
  .head-box{
    width: 100%;
    height: 72px;
    background: url('../../assets/imgs/top_bg.png') ;
    background-size: 100% 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1vh;
    color: #fff;
    .right-box{
      flex: 1;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      img{
        display: block;
        height: 4vh;
        margin-left: 1vh;
      }
      .line{
        height: 60%;
        width: 2px;
        background: #d7effe;
        -webkit-box-shadow: 0 0 3px 1px #19a6fd;
        box-shadow: 0 0 3px 1px #19a6fd;
        margin: 0 20px;
        display: block;
      }
      .question{
        text-shadow: 0 0 7px #19a6fd;
        color: #ffff;
        font-family: "pmzd";
        font-size: 28px;
        margin: 0 4px;
      }
      .current-time{
        width: 9vw;
        text-align: center;
        font-size: 34px;
        font-family: "YSBTH";
        margin-right: 1vw;
        text-shadow: 0 0 7px #19a6fd;
      }
    }
  }
</style>